ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / CustomPropertyInfo Class / GetValue Method / GetValue(Object,Object[]) Method
The object whose property value will be returned.
Optional index values for indexed properties. This value should be null for non-indexed properties.

In This Topic
    GetValue(Object,Object[]) Method
    In This Topic
    Returns the value of the property with optional index values for indexed properties.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function GetValue( _
       ByVal obj As Object, _
       ByVal index() As Object _
    ) As Object
    public override object GetValue( 
       object obj,
       object[] index
    )

    Parameters

    obj
    The object whose property value will be returned.
    index
    Optional index values for indexed properties. This value should be null for non-indexed properties.

    Return Value

    The property value for the obj parameter.
    Exceptions
    ExceptionDescription
    The index array does not contain the type of arguments needed.-or- The property's get accessor is not found.
    The object does not match the target type, or a property is an instance property but obj is null.
    The number of parameters in index does not match the number of parameters the indexed property takes.
    There was an illegal attempt to access a private or protected method inside a class.
    An error occurred while retrieving the property value. For example, an index value specified for an indexed property is out of range. The System.Exception.InnerException property indicates the reason for the error.
    See Also